<h1>Listing bookings</h1>

<table>
  <tr>
    <th>Booking date</th>
    <th>Cust</th>
    <th>Camp</th>
    <th>Arrival date</th>
    <th>Nights</th>
    <th>Adults</th>
    <th>Children</th>
    <th>Total</th>
  </tr>

<% for booking in @bookings %>
  <tr>
    <td><%=h booking.booking_date %></td>
    <td><%=h booking.cust_id %></td>
    <td><%=h booking.camp_id %></td>
    <td><%=h booking.arrival_date %></td>
    <td><%=h booking.nights %></td>
    <td><%=h booking.adults %></td>
    <td><%=h booking.children %></td>
    <td><%=h booking.total %></td>
    <td><%= link_to 'Show', booking %></td>
    <td><%= link_to 'Edit', edit_booking_path(booking) %></td>
    <td><%= link_to 'Destroy', booking, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New booking', new_booking_path %>
